import apiStore,{ StoreApiType } from "@/stores/apiStore"
export const useAPI = function (httpCode ?: keyof StoreApiType) {
  const api = apiStore().api

  return httpCode ? api[httpCode] : api
}